<?php
//Zend_Loader::loadFile('../application/admin/models/Template.php');
class Permission 
{
    /**
     * @var object Zend DB Adapter
     */
    private $_db;
    /**
     * @var string
     */
   
    public function __construct()
    {
			$this->_db = Zend_Registry::get('db');
    }
    
    public function getPermission($type)
    {
    	$getPermission = $this->_db->fetchAll("
			SELECT module, acl
			FROM permission
			WHERE user_type = '" . $type . "'			
		");
		
		return $getPermission;
	}
}

